package com.android.huimeiqupin.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/16.
 */

public abstract  class ThematicActivityListDataCallback extends Callback<ThematicActivityListData> {

    @Override
    public ThematicActivityListData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        ThematicActivityListData thematicActivityListData = new Gson().fromJson(string, ThematicActivityListData.class);
        return thematicActivityListData;
    }
}
